import request from '@/utils/request'

// 查询信息
export function listEquipment(query) {
  return request({
    url: '/equipment/equipment/find',
    method: 'get',
    params: query
  })
}

// 查询下拉信息表栏舍编码
export function findPhouseCode(query) {
  return request({
    url: '/equipment/equipment/findCode/',
    method: 'get',
    params: query
  })
}

// 查询用户列表
export function listWS(query) {
  return request({
    url: '/equipment/wenshi/list',
    method: 'post',
    params: query
  })
}

// 新增设备
export function addWS(query) {
  return request({
    url: '/equipment/wenshi/add',
    method: 'post',
    params: query
  })
}

// 修改设备
export function editWS(query) {
  return request({
    url: '/equipment/wenshi/edit',
    method: 'post',
    params: query
  })
}

// 删除设备
export function delWS(query) {
  return request({
    url: '/equipment/wenshi/del/' + query,
    method: 'post',
  })
}

// id查询用户列表
export function listWSById(query) {
  return request({
    url: '/equipment/wenshi/listById/' + query,
    method: 'post',
  })
}
